#ifndef UDPROOM_H
#define UDPROOM_H

#include <QWidget>
#include <QTcpSocket>
#include <QMessageBox>

namespace Ui {
class UdpRoom;
}

class UdpRoom : public QWidget
{
    Q_OBJECT

public:
    explicit UdpRoom(QTcpSocket* client, const QString user_name, const QString room_id,
                     bool isOwner, const QString owner_name, QWidget *parent = nullptr);
    ~UdpRoom();

private slots:
    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

private:
    Ui::UdpRoom *ui;
    QString  user_name;
    QString room_id;
    QTcpSocket* client;
    bool isOwner; //身份，true：房主；false：观众
    QString owner_name;
};

#endif // UDPROOM_H
